﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace @class
{
    class fulei
    {
        public string name;
        public string introduce;
        public int attack;
        public int defense;
        public int speed;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Introduce
        {
            get { return this.introduce; }
            set { this.introduce = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
        public fulei()
        { }
        public fulei(string name, string introduce, int attack, int defense, int speed)
        {
            this.name = name;
            this.introduce = introduce;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
        }

        public void Text()
        {
            Console.WriteLine("我的英雄名称是：" + this.name);
            Console.WriteLine("我的英雄介绍是：" + this.introduce);
            Console.WriteLine("我的攻击力：" + this.attack);
            Console.WriteLine("我的防御力：" + this.defense);
            Console.WriteLine("我的速度：" + this.speed);
        }
    }
}
